﻿using System.ComponentModel.DataAnnotations;
using EPiServer.DataAnnotations;
using EPiServer.Framework.DataAnnotations;
using EPiServer.Web;

namespace StarterKit.Web.Models.Media
{
    [ContentType(
        DisplayName = "Video File",
        Description = "Video File Description",
        GroupName = "Default",
        Order = 100)]
    [MediaDescriptor(ExtensionString = "flv,mp4,webm")]
    public class VideoFile : EPiServer.Core.VideoData
    {
        /// <summary>
        /// Gets or sets the copyright.
        /// </summary>
        public virtual string Copyright { get; set; }

        /// <summary>
        /// Gets or sets the URL to the preview image.
        /// </summary>
        [UIHint(UIHint.Image)]
        public virtual EPiServer.Core.ContentReference PreviewImage { get; set;}
    }
}